package com.orhon.smartcampus.modules.student.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
@EqualsAndHashCode
@Entity
@Table(name = "student_traffic", schema = "smartcloud", catalog = "")
public class Traffic {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false)
    private Long id;
    @Column(name = "user_id", nullable = true, precision = 0)
    private Long userId;
    @Column(name = "student_id", nullable = true)
    private Long studentId;
    @Column(name = "distance", nullable = true)
    private String distance;
    @Column(name = "traffic_release_id", nullable = true)
    private Integer trafficReleaseId;
    @Column(name = "is_school_bus", nullable = true)
    private Integer isSchoolBus;
    @Column(name = "created_by", nullable = true)
    private Integer createdBy;
    @Column(name = "created_at", nullable = true)
    private Date createdAt;
    @Column(name = "updated_at", nullable = true)
    private Date updatedAt;
    @Column(name = "updated_by", nullable = true)
    private Integer updatedBy;
    @Column(name = "deleted_at", nullable = true)
    private Date deletedAt;

}
